var vm=new Vue({
    el:"#loginName",
    data: {
        loginName:"",
    },
    created () {
            this.loginUserName();
        },
    methods: {
        loginUserName:function (){
            let that=this;
            axios.get("/login/name.do").then(function (response){
                that.loginName=response.data.loginName;
                console.log(response.data);
            }).catch(function (error) {
                console.log(error);
            });
        }
    }

})